# -*- coding: utf8-*-
import base64
import json
import shelve

import time

import StringIO
import requests

from app.models import WxGzh, db_save
from app.util.util import raw_unicode

_author_ = 'yykrlc'

from flask import render_template, request
from app.wxgzh import weixin

from app.app_config import BaseConfig
from app import models
#from app import socketio
from flask_socketio import send, emit, join_room, leave_room, rooms, close_room

open_token = BaseConfig.open_token
component_appid=BaseConfig.component_appid
encodingAESKey = BaseConfig.encodingAESKey
#ADMIN_URL = BaseConfig.ADMIN_URL
api_file_url = BaseConfig.api_file_url

@weixin.route('/', methods=['GET', 'POST'])
def index():
    print '----soket----',request.values
    return render_template('index.html')

@weixin.route('/aa', methods=['GET', 'POST'])
def indexaa():
    print models.Messages.query.all()
    print models.WxGzh.query.all()
    print models.WxUserInfo.query.all()
    return render_template('index.html')





